import request from '@/router/axios';

export const getList = (params) => {
    return request({
        url: '/api/mes-product/preprocess/record/get-info',
        method: 'get',
        params: params
    });
}

export const getDetail = (id) => {
    return request({
        url: '/api/mes-product/preprocess/record/detail',
        method: 'get',
        params: {
            id
        }
    });
}

export const scanPack = (params) => {
    return request({
        url: '/api/mes-product/preprocess/record/scan-packing',
        method: 'get',
        params: params
    });
}

export const finish = (params) => {
    return request({
        url: '/api/mes-product/preprocess/record/finish',
        method: 'get',
        params: params
    });
}